import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../services/http-client.service';

@Injectable()
export class EngineModelService {

    constructor(
        public httpClient: HttpClientService
    ) { }
    // 分页列表
    list(getBody) {
        return this.httpClient.get('/pms/v1/quartzJob/select', getBody);
    }
    // 保存
    add(postBody) {
        delete postBody.isChecked;
        return this.httpClient.post('/pms/v1/quartzJob/insert', postBody);
    }
    // 保存
    edit(postBody) {
        delete postBody.isChecked;
        return this.httpClient.post('/pms/v1/quartzJob/update', postBody);
    }
    // 删除
    del(putBody) {
        return this.httpClient.put('/pms/v1/quartzJob/delete', putBody);
    }
}